package cn.stylefeng.guns.sys.modular.system.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wjk
 * @since 2021-12-08
 */
@TableName("bty_payment_order")
public class BtyPaymentOrder implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键id
     */
      @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 支付订单，一个订单
     */
    @TableField("pay_code")
    private Long payCode;

    /**
     * 妖码
     */
    @TableField("yaoma")
    private String yaoma;

    /**
     * 店长名字
     */
    @TableField("manager")
    private String manager;

    /**
     * 店长id
     */
    @TableField("manager_id")
    private Long managerId;

    /**
     * 支付总金额
     */
    @TableField("paid_cash_all")
    private BigDecimal paidCashAll;

    /**
     * 支付人姓名
     */
    @TableField("pay_name")
    private String payName;

    /**
     * 支付人电话
     */
    @TableField("pay_tel")
    private String payTel;

    /**
     * 支付人id(获取到当前登录人id)
     */
    @TableField("pay_id")
    private Long payId;

    /**
     * 支付人编码
     */
    @TableField("pay_bh")
    private String payBh;

    /**
     * 支付时间
     */
    @TableField("pay_datetime")
    private Date payDatetime;

    /**
     * 支付方式
     */
    @TableField("pay_method")
    private String payMethod;

    /**
     * 手动修改支付的人(若有手动支付人，则其他的支付人信息可为空)
     */
    @TableField("manually_add_user")
    private String manuallyAddUser;

    /**
     * 手动修改支付用户id
     */
    @TableField("manually_add_user_id")
    private String manuallyAddUserId;

    /**
     * 手动修改支付的时间
     */
    @TableField("manually_add_datetime")
    private Date manuallyAddDatetime;

    /**
     * 支付状态（0.支付中，1，支付成功，2支付为失败）
     */
    @TableField("pay_state")
    private Integer payState;

    /**
     * 创建时间
     */
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人id
     */
      @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 更新时间
     */
      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 更新人id
     */
      @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 支付人openid
     */
    @TableField("openid")
    private String openid;

    /**
     * 乐刷支付状态 (0,支付中;2,支付成功;6,订单关闭;8,支付失败;10,退款中;11,退款成功;12,退款失败)
     */
    @TableField("le_shua_pay_state")
    private Integer leShuaPayState;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPayCode() {
        return payCode;
    }

    public void setPayCode(Long payCode) {
        this.payCode = payCode;
    }

    public String getYaoma() {
        return yaoma;
    }

    public void setYaoma(String yaoma) {
        this.yaoma = yaoma;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    public Long getManagerId() {
        return managerId;
    }

    public void setManagerId(Long managerId) {
        this.managerId = managerId;
    }

    public BigDecimal getPaidCashAll() {
        return paidCashAll;
    }

    public void setPaidCashAll(BigDecimal paidCashAll) {
        this.paidCashAll = paidCashAll;
    }

    public String getPayName() {
        return payName;
    }

    public void setPayName(String payName) {
        this.payName = payName;
    }

    public String getPayTel() {
        return payTel;
    }

    public void setPayTel(String payTel) {
        this.payTel = payTel;
    }

    public Long getPayId() {
        return payId;
    }

    public void setPayId(Long payId) {
        this.payId = payId;
    }

    public String getPayBh() {
        return payBh;
    }

    public void setPayBh(String payBh) {
        this.payBh = payBh;
    }

    public Date getPayDatetime() {
        return payDatetime;
    }

    public void setPayDatetime(Date payDatetime) {
        this.payDatetime = payDatetime;
    }

    public String getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(String payMethod) {
        this.payMethod = payMethod;
    }

    public String getManuallyAddUser() {
        return manuallyAddUser;
    }

    public void setManuallyAddUser(String manuallyAddUser) {
        this.manuallyAddUser = manuallyAddUser;
    }

    public String getManuallyAddUserId() {
        return manuallyAddUserId;
    }

    public void setManuallyAddUserId(String manuallyAddUserId) {
        this.manuallyAddUserId = manuallyAddUserId;
    }

    public Date getManuallyAddDatetime() {
        return manuallyAddDatetime;
    }

    public void setManuallyAddDatetime(Date manuallyAddDatetime) {
        this.manuallyAddDatetime = manuallyAddDatetime;
    }

    public Integer getPayState() {
        return payState;
    }

    public void setPayState(Integer payState) {
        this.payState = payState;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Integer getLeShuaPayState() {
        return leShuaPayState;
    }

    public void setLeShuaPayState(Integer leShuaPayState) {
        this.leShuaPayState = leShuaPayState;
    }

    @Override
    public String toString() {
        return "BtyPaymentOrder{" +
        "id=" + id +
        ", payCode=" + payCode +
        ", yaoma=" + yaoma +
        ", manager=" + manager +
        ", managerId=" + managerId +
        ", paidCashAll=" + paidCashAll +
        ", payName=" + payName +
        ", payTel=" + payTel +
        ", payId=" + payId +
        ", payBh=" + payBh +
        ", payDatetime=" + payDatetime +
        ", payMethod=" + payMethod +
        ", manuallyAddUser=" + manuallyAddUser +
        ", manuallyAddUserId=" + manuallyAddUserId +
        ", manuallyAddDatetime=" + manuallyAddDatetime +
        ", payState=" + payState +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", updateTime=" + updateTime +
        ", updateUser=" + updateUser +
        ", openid=" + openid +
        ", leShuaPayState=" + leShuaPayState +
        "}";
    }
}
